public class Baby {

    public Baby(String firstName){
        this.firstName = firstName;
    }

    public Baby(String firstName, double height, double weight){
        this(firstName);
        this.height = height;
        this.weight = weight;
    }
    /**
     * 构造方法
     * @param firstName 姓
     * @param height 身高
     * @param weight 体重
     * @param gender 性别
     */
    public Baby(String firstName, double height, double weight, char gender){
        this.firstName = firstName;
        this.height = height;
        this.weight = weight;
        this.gender = gender;
    }
    /**
     * 姓
     */
    public String firstName;

    /**
     * 身高
     */
    public double height;

    /**
     * 体重
     */
    public double weight;

    /**
     * 性别
     */
    public char gender;


}

